<template>
	<view v-for="(item,index) in datalist" style="margin:10rpx">
		<cardTopVue :img="item.img" :title="item.title" :writer="item.writer" :comment="item.comment" :time="item.time" :isTop="item.isTop">
			
		</cardTopVue>
	</view>
</template>

<script>
	import cardTopVue from '../../../components/cardViewText.vue'
	export default {
		components: {
			cardTopVue
		},
		data() {
			return {
				datalist: [{
						img: '/static/new1.jpg',
						title: "长沙潮宗街墙体垮塌附近商户发声：事发前涉事店铺装修打洞曾引发邻居投诉",
						writer: "澎湃新闻",
						comment: "69评",
						time: "14小时前",
						isTop: true,
					},
					{
						img: '/static/new2.jpg',
						title: "中方：已向日方提出严正交涉和强烈抗议！",
						writer: "环球时报",
						comment: "35评",
						time: "3小时前",
						isTop: false,
					},
					{
						img: '/static/new3.jpg',
						title: "陕西31岁女护士被同居男友杀害案将于11月3日开庭，家属：放弃赔偿，不接受道歉，希望对方被判死刑",
						writer: "大河报",
						comment: "1376评",
						time: "3小时前",
						isTop: true,
					},
					{
						img: '/static/new4.jpg',
						title: "江西一窝点被端，多名男女被抓！",
						writer: "闽南网",
						comment: "16评",
						time: "5天前",
						isTop: false,
					}
				]
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>